﻿using System;

namespace HslCommunication.Core.IMessage
{
	/// <summary>
	/// DLT 645协议的串口透传的消息类
	/// </summary>
	// Token: 0x02000150 RID: 336
	public class DLT645Message : INetMessage
	{
		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ProtocolHeadBytesLength" />
		// Token: 0x170005BF RID: 1471
		// (get) Token: 0x06001CEA RID: 7402 RVA: 0x0008CEC2 File Offset: 0x0008B0C2
		public int ProtocolHeadBytesLength
		{
			get
			{
				return 10;
			}
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetContentLengthByHeadBytes" />
		// Token: 0x06001CEB RID: 7403 RVA: 0x0008CEC6 File Offset: 0x0008B0C6
		public int GetContentLengthByHeadBytes()
		{
			return (int)(this.HeadBytes[9] + 2);
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.CheckHeadBytesLegal(System.Byte[])" />
		// Token: 0x06001CEC RID: 7404 RVA: 0x0008CD5E File Offset: 0x0008AF5E
		public bool CheckHeadBytesLegal(byte[] token)
		{
			return true;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetHeadBytesIdentity" />
		// Token: 0x06001CED RID: 7405 RVA: 0x00047BE1 File Offset: 0x00045DE1
		public int GetHeadBytesIdentity()
		{
			return 0;
		}

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.HeadBytes" />
		// Token: 0x170005C0 RID: 1472
		// (get) Token: 0x06001CEE RID: 7406 RVA: 0x0008CED3 File Offset: 0x0008B0D3
		// (set) Token: 0x06001CEF RID: 7407 RVA: 0x0008CEDB File Offset: 0x0008B0DB
		public byte[] HeadBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ContentBytes" />
		// Token: 0x170005C1 RID: 1473
		// (get) Token: 0x06001CF0 RID: 7408 RVA: 0x0008CEE4 File Offset: 0x0008B0E4
		// (set) Token: 0x06001CF1 RID: 7409 RVA: 0x0008CEEC File Offset: 0x0008B0EC
		public byte[] ContentBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.SendBytes" />
		// Token: 0x170005C2 RID: 1474
		// (get) Token: 0x06001CF2 RID: 7410 RVA: 0x0008CEF5 File Offset: 0x0008B0F5
		// (set) Token: 0x06001CF3 RID: 7411 RVA: 0x0008CEFD File Offset: 0x0008B0FD
		public byte[] SendBytes { get; set; }
	}
}
